<?php
require_once ('scripts.php');
$action=$_REQUEST['action'];
	if($action=='getsummarry')
	{   
	   $start=$_POST['start'];
	   $count=$_POST['count'];
	   $searchkey=$_POST['searchkey'];
             $user_details = AdminDAOImpl::getInstance()->getAlluser($start,$count,$searchkey);
             $company_details = CompanyDAOImpl::getInstance()->getCompaniesByType('Tower Company',0,5,'');
             
          //  $data = encodeJsonStringMedaiator($result);
            
		/*$userlist[] = array(		
		"user_name" =>'Gopi',
		"email"=>'Pgnath@gmaol.com'
		);
		$partnerlist[] = array(		
		"user_name" =>'Gopi',
		"email"=>'Pgnath@gmaol.com'
		);*/
		$data = array("total_count"=>$user_details->count,"userlist"=>$user_details->source,"company_details"=>$company_details->source);
		echo json_encode($data);
	}
	
?>